<template>
  <div class="container">
    <slot name="title">
      <div class="card-title">{{ title }}</div>
    </slot>
    <div class="wrapper">
      <slot></slot>
    </div>
  </div>
</template>
<script setup>
const props = defineProps({
  title: {
    type: String,
    default: "",
  },
});
</script>
<style scoped lang="scss">
.container {
  border: 1px solid #f0f0f0;
  border-radius: 10px;

  .wrapper {
    padding: 20px 30px;
    text-align: center;
  }

  .card-title {
    color: rgba(0, 0, 0, 0.85);
    font-weight: bold;
    font-size: 16px;
    line-height: 40px;
    border-bottom: 1px solid #d9d9d9;
    padding: 0 10px;
  }
}
</style>
